import ajax from '@/utils/ajax';
import request from '@/utils/request'
export default {
    // 导出施工日志
    exportConstructionLogExcel(data) {
        return ajax({
            url: '/engineering/exportConstructionLogExcel',
            method: 'get',
            data
        })
    },
    // 导出施工项目
    exportEngineeringExcel(data) {
        return ajax({
            url: '/engineering/exportEngineeringExcel',
            method: 'get',
            data
        })
    },
    // 导出质量验收
    exportQualityAcceptanceExcel(data) {
        return ajax({
            url: '/engineering/exportQualityAcceptanceExcel',
            method: 'get',
            data
        })
    },
    // 工程监理添加施工日志（new）
    addConstructionLogs(data) {
        return ajax({
            url: '/engineering/addConstructionLogs',
            method: 'post',
            data
        })
    },
    // 工程验收审核
    qualityAcceptanceAudit(data) {
        return ajax({
            url: '/engineering/qualityAcceptanceAudit',
            method: 'post',
            data
        })
    },
    // 工程验收复审
    qualityAcceptanceRetrial(data) {
        return ajax({
            url: '/engineering/qualityAcceptanceRetrial',
            method: 'post',
            data
        })
    },
    // 工程日志列表
    constructionLogList(data) {
        return ajax({
            url: '/engineering/constructionLogList',
            method: 'get',
            data
        })
    },
    // 工程日志详情
    constructionLogDetails(data) {
        return ajax({
            url: '/engineering/constructionLogDetails',
            method: 'get',
            data
        })
    },
    // 项目详情
    engineeringProjectDetails(data) {
        return ajax({
            url: '/engineering/engineeringProjectDetails',
            method: 'get',
            data
        })
    },
    // 项目列表
    engineeringProjectList(data) {
        return ajax({
            url: '/engineering/engineeringProjectList',
            method: 'get',
            data
        })
    },
    // 验收列表
    qualityAcceptanceList(data) {
        return ajax({
            url: '/engineering/qualityAcceptanceList',
            method: 'get',
            data
        })
    },
    // 验收详情
    qualityAcceptanceDetails(data) {
        return ajax({
            url: '/engineering/qualityAcceptanceDetails',
            method: 'get',
            data
        })
    },
    // 获取项目节点详情（单个节点信息，用于提交质量验收审核页面）
    getProjectNodeDetails(data) {
        return ajax({
            url: '/engineering/getProjectNodeDetails',
            method: 'get',
            data
        })
    },
}